/*******************************************************************************
 * Size: 16 px
 * Bpp: 4
 * Opts: --bpp 4 --size 16 --no-compress --font OPlusSans3-Regular.ttf --symbols 暂无消息通知月 --format lvgl -o app_status_bar_font_noti.c
 ******************************************************************************/

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef APP_STATUS_BAR_FONT_NOTI
#define APP_STATUS_BAR_FONT_NOTI 1
#endif

#if APP_STATUS_BAR_FONT_NOTI

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+606F "息" */
    0x0, 0x0, 0x0, 0x19, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x6d, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x4f, 0xff, 0xff, 0xff, 0xff, 0xf3, 0x0,
    0x0, 0x4d, 0x0, 0x0, 0x0, 0x0, 0xe3, 0x0,
    0x0, 0x4f, 0xff, 0xff, 0xff, 0xff, 0xf3, 0x0,
    0x0, 0x4d, 0x0, 0x0, 0x0, 0x0, 0xe3, 0x0,
    0x0, 0x4f, 0xdd, 0xdd, 0xdd, 0xdd, 0xf3, 0x0,
    0x0, 0x4d, 0x22, 0x22, 0x22, 0x22, 0xe3, 0x0,
    0x0, 0x4d, 0x11, 0x11, 0x11, 0x11, 0xe3, 0x0,
    0x0, 0x4f, 0xff, 0xff, 0xff, 0xff, 0xf3, 0x0,
    0x0, 0x32, 0x13, 0xc, 0x40, 0x0, 0x40, 0x0,
    0x0, 0xd6, 0x6b, 0x4, 0xe1, 0x0, 0xba, 0x0,
    0x4, 0xe0, 0x6b, 0x0, 0x84, 0x76, 0x1e, 0x50,
    0xd, 0x70, 0x5d, 0x21, 0x11, 0xb6, 0x5, 0xe1,
    0x19, 0x0, 0x1d, 0xff, 0xff, 0xc1, 0x0, 0x50,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,

    /* U+65E0 "无" */
    0x0, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x0,
    0xc, 0xcc, 0xcc, 0xfc, 0xcc, 0xcc, 0xc0, 0x0,
    0x0, 0x0, 0x2f, 0x10, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x2, 0xf1, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x4f, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff,
    0xff, 0xff, 0xff, 0xff, 0xff, 0x2, 0x22, 0x22,
    0xbb, 0x33, 0x22, 0x22, 0x20, 0x0, 0x0, 0xe,
    0x6b, 0x70, 0x0, 0x0, 0x0, 0x0, 0x5, 0xf2,
    0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0xda, 0xb,
    0x70, 0x0, 0x0, 0x0, 0x0, 0x8f, 0x20, 0xb7,
    0x0, 0x5, 0x80, 0x0, 0x7f, 0x50, 0xb, 0x70,
    0x0, 0x7b, 0x0, 0x9f, 0x50, 0x0, 0xba, 0x22,
    0x2a, 0x80, 0xde, 0x40, 0x0, 0x5, 0xff, 0xff,
    0xe2, 0x6, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0,

    /* U+6682 "暂" */
    0x0, 0x1, 0x50, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x1, 0x18, 0xb1, 0x11, 0x1, 0x36, 0x9c, 0x60,
    0xc, 0xef, 0xdd, 0xdd, 0x6f, 0xdb, 0x84, 0x10,
    0x0, 0xa7, 0x48, 0x0, 0x5b, 0x0, 0x0, 0x0,
    0x5, 0xfd, 0xef, 0xdb, 0x5f, 0xcc, 0xcc, 0xc2,
    0x0, 0x11, 0x7b, 0x11, 0x6b, 0x33, 0xf5, 0x30,
    0x0, 0x1, 0x8c, 0x68, 0x97, 0x0, 0xf2, 0x0,
    0x1e, 0xed, 0xee, 0x99, 0xe1, 0x0, 0xf2, 0x0,
    0x0, 0x0, 0x47, 0x5, 0x60, 0x0, 0x61, 0x0,
    0x0, 0xe, 0xee, 0xee, 0xee, 0xee, 0xe1, 0x0,
    0x0, 0x1f, 0x10, 0x0, 0x0, 0x1, 0xf1, 0x0,
    0x0, 0x1f, 0x32, 0x22, 0x22, 0x23, 0xf1, 0x0,
    0x0, 0x1f, 0xcb, 0xbb, 0xbb, 0xbc, 0xf1, 0x0,
    0x0, 0x1f, 0x10, 0x0, 0x0, 0x1, 0xf1, 0x0,
    0x0, 0x1f, 0xee, 0xee, 0xee, 0xee, 0xf1, 0x0,

    /* U+6708 "月" */
    0x0, 0xd, 0xff, 0xff, 0xff, 0xff, 0xd0, 0x0,
    0xe6, 0x22, 0x22, 0x22, 0x6e, 0x0, 0xe, 0x40,
    0x0, 0x0, 0x4, 0xe0, 0x0, 0xe4, 0x0, 0x0,
    0x0, 0x4e, 0x0, 0xe, 0xfe, 0xee, 0xee, 0xef,
    0xe0, 0x0, 0xe6, 0x22, 0x22, 0x22, 0x6e, 0x0,
    0xe, 0x40, 0x0, 0x0, 0x4, 0xe0, 0x0, 0xf3,
    0x0, 0x0, 0x0, 0x4e, 0x0, 0xf, 0xff, 0xff,
    0xff, 0xff, 0xe0, 0x2, 0xf2, 0x22, 0x22, 0x22,
    0x6e, 0x0, 0x6d, 0x0, 0x0, 0x0, 0x4, 0xe0,
    0xc, 0x70, 0x0, 0x0, 0x0, 0x4e, 0x5, 0xf1,
    0x0, 0x0, 0x13, 0x39, 0xd1, 0xf7, 0x0, 0x0,
    0x2, 0xff, 0xd5, 0x4, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0,

    /* U+6D88 "消" */
    0x0, 0x0, 0x0, 0x0, 0x3, 0x70, 0x0, 0x0,
    0x3, 0xd3, 0x6, 0x90, 0x5, 0xd0, 0x2, 0xb0,
    0x0, 0x7f, 0x61, 0xd9, 0x5, 0xd0, 0x1d, 0x80,
    0x0, 0x4, 0xd0, 0x2e, 0x55, 0xd0, 0xd9, 0x0,
    0x6, 0x0, 0x0, 0x13, 0x16, 0xd1, 0x51, 0x0,
    0xc, 0xd2, 0x3, 0xff, 0xff, 0xff, 0xff, 0xa0,
    0x0, 0xaf, 0x33, 0xe0, 0x0, 0x0, 0x8, 0xa0,
    0x0, 0x7, 0x13, 0xe1, 0x11, 0x11, 0x19, 0xa0,
    0x0, 0x0, 0x3, 0xff, 0xff, 0xff, 0xff, 0xa0,
    0x0, 0xc, 0x33, 0xe0, 0x0, 0x0, 0x8, 0xa0,
    0x0, 0x1f, 0x13, 0xe2, 0x22, 0x22, 0x29, 0xa0,
    0x0, 0x6d, 0x3, 0xff, 0xff, 0xff, 0xff, 0xa0,
    0x0, 0xb8, 0x3, 0xe0, 0x0, 0x0, 0x8, 0xa0,
    0x1, 0xf3, 0x3, 0xe0, 0x0, 0x3, 0x3b, 0xa0,
    0x5, 0xc0, 0x3, 0xe0, 0x0, 0xe, 0xed, 0x30,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,

    /* U+77E5 "知" */
    0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x3, 0xf0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x9b, 0x33, 0x32, 0x4c, 0xcc, 0xcc, 0x20, 0xf,
    0xef, 0xee, 0x95, 0xd4, 0x44, 0xf3, 0x7, 0xd0,
    0xd4, 0x0, 0x5b, 0x0, 0xe, 0x30, 0xc5, 0xd,
    0x40, 0x5, 0xb0, 0x0, 0xe3, 0x0, 0x0, 0xd4,
    0x0, 0x5b, 0x0, 0xe, 0x31, 0xff, 0xff, 0xff,
    0xe5, 0xb0, 0x0, 0xe3, 0x1, 0x11, 0xf4, 0x11,
    0x5b, 0x0, 0xe, 0x30, 0x0, 0x2f, 0x0, 0x5,
    0xb0, 0x0, 0xe3, 0x0, 0x7, 0xf9, 0x0, 0x5b,
    0x0, 0xe, 0x30, 0x0, 0xd8, 0xe7, 0x5, 0xb0,
    0x0, 0xe3, 0x0, 0x8d, 0x3, 0xf4, 0x5b, 0x0,
    0xe, 0x30, 0x4f, 0x40, 0x7, 0x65, 0xfe, 0xee,
    0xf3, 0xd, 0x70, 0x0, 0x0, 0x2, 0x22, 0x22,
    0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,

    /* U+901A "通" */
    0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x1, 0xf4, 0x2, 0xff, 0xff, 0xff, 0xff, 0x10,
    0x0, 0x6e, 0x0, 0x4, 0x71, 0x5, 0xe7, 0x0,
    0x0, 0xc, 0x80, 0x2, 0xae, 0xad, 0x30, 0x0,
    0x0, 0x1, 0x1, 0xbb, 0xbe, 0xfc, 0xbb, 0x10,
    0x1, 0x11, 0x2, 0xf3, 0x37, 0xd3, 0x3f, 0x20,
    0x1f, 0xfe, 0x2, 0xe0, 0x5, 0xc0, 0xe, 0x20,
    0x1, 0x4e, 0x2, 0xfe, 0xef, 0xfe, 0xef, 0x20,
    0x0, 0x3e, 0x2, 0xe0, 0x4, 0xc0, 0xe, 0x20,
    0x0, 0x3e, 0x2, 0xfe, 0xee, 0xfe, 0xef, 0x20,
    0x0, 0x3e, 0x2, 0xe1, 0x15, 0xc1, 0x1e, 0x20,
    0x0, 0x3f, 0x2, 0xe0, 0x4, 0xc1, 0x3f, 0x10,
    0x0, 0xcf, 0xa3, 0xe0, 0x3, 0x95, 0xea, 0x0,
    0xa, 0xd1, 0xbe, 0x95, 0x31, 0x11, 0x12, 0x31,
    0x2d, 0x20, 0x4, 0x9d, 0xff, 0xff, 0xff, 0xf3,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x11, 0x0, 0x0
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 128, .adv_w = 256, .box_w = 15, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 241, .adv_w = 256, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 361, .adv_w = 256, .box_w = 13, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 459, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 587, .adv_w = 256, .box_w = 15, .box_h = 16, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 707, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = -2}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
    0x0, 0x571, 0x613, 0x699, 0xd19, 0x1776, 0x2fab
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 24687, .range_length = 12204, .glyph_id_start = 1,
        .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 7, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};



/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t app_status_bar_font_noti = {
#else
lv_font_t app_status_bar_font_noti = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 16,          /*The maximum line height required by the font*/
    .base_line = 2,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = -1,
    .underline_thickness = 1,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = NULL,
#endif
    .user_data = NULL,
};



#endif /*#if APP_STATUS_BAR_FONT_NOTI*/

